﻿// ===============================================================================
// IValueProvider.cs
// EOS Web Framework
// ===============================================================================
// Copyright (c) EOS Development Group. All rights reserved.
// ===============================================================================

namespace EOS.Framework.Web.Mvc
{
    /// <summary>
    /// Contract for a value provider, who is responsible for
    /// getting values by keys
    /// </summary>
    public interface IValueProvider
    {
        /// <summary>
        /// Provides a value for a specified key.
        /// </summary>
        /// <param name="key">The key of the value.</param>
        /// <returns>The value. Can be null (Nothing in Visual Basic).</returns>
        string GetValue(string key);
    }
}
